#include <stdio.h>

int main() {
    int k;
    scanf("%d", &k);
    double Sn = 0;
    int n;
    for (n = 1; Sn <= k; n++) {
        Sn += 1.0 / n;
    }
    printf("%d\n", n - 1);
    return 0;
}
